STEP 7: Our return variable holds the value that is calculated inside the function, in this case, T-rex's moon weight.

  • Go to and drag Return Variable OUTSIDE the function.
  • Change the variable from my_var to dino_moon_weight. It stores how much the T-rex weighs on the moon!
  • Change the function name from my_function to get_moon_weight.
  • Add dino as an argument in the function call. Hint: Put it in the empty parentheses.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)